package com.baomidou.ant.controller;

import com.baomidou.ant.common.Result;
import com.baomidou.ant.service.IInStorageService;
import com.baomidou.ant.vo.request.RequestAddInStorageVo;
import com.baomidou.ant.vo.request.RequestInStorageVo;
import com.baomidou.ant.vo.request.RequestListInStorageVo;
import com.baomidou.ant.vo.response.ResponseListInStorageVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jobob
 * @since 2022-03-18
 */
@RestController
@RequestMapping("/in-storage")
public class InStorageController {
    @Autowired
    IInStorageService inStorageService;

    @PostMapping("/listInStorage")
    public Result listInStorage(@RequestBody RequestListInStorageVo vo){
        IPage<ResponseListInStorageVo> iPage=inStorageService.listInStorage(vo);
        return Result.getSuccess().setData(iPage);
    }

    @PostMapping("/inStorage")
    public Result inStorage(@RequestBody RequestAddInStorageVo vo){
        return null;
    }

    @PostMapping("/outStorage")
    public Result outStorage(){
        return null;
    }

    @PostMapping("/listInfo")
    public Result listInfo(@RequestBody RequestInStorageVo vo){
        return null;
    }


}
